package com.liang.paul.officelite.holders;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;

import cn.bmob.v3.datatype.BmobFile;
import cn.bmob.v3.listener.DownloadFileListener;

/**
 * Created by paulliang on 16/5/1.
 */
public class TeamListHolder {
    ImageView image;
    TextView name, createDate;
    Context context;

    public TeamListHolder(Context context, ImageView image, TextView name, TextView createDate) {
        this.image = image;
        this.name = name;
        this.createDate = createDate;
        this.context = context;
    }

    public void setImage(Drawable src) {
        image.setImageDrawable(src);
    }

    public void setName(String name) {
        this.name.setText(name);
    }

    public void setCreateDate(String createDate) {
        this.createDate.setText("创建于: " + createDate);
    }
}
